import request from "../utils/request";
//添加部门
export function add(data) {
  console.log(data);
  return request.post("/api/partment/add", data);
}

//查询所有部门
export function getall() {
  return request.get("/api/partment/all");
}

//条件查询
export function search(data) {
  return request.get("/api/partment/search", data);
}

//暂停使用
export function stop(data) {
  return request.get("/api/partment/stop", data);
}
//暂停使用
export function del(data) {
  return request.get("/api/partment/delete", data);
}

export function revise(data) {
  return request.get("/api/partment/revise", data);
}
